<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta charset="utf-8">
    <title>{{$data.title}} - 后台管理</title>
    <link href="{{$smarty.const.APP_URL}}templates/admin/css/admin.css" type="text/css" rel="stylesheet">
    <link href="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/black.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/jquery.artDialog.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/admin.js"></script>
    <script type="text/javascript">
        var this_uri = "/setting/site";
    </script>
</head>
<body>

<div id="header">
    <div class="logo"><a href="/"><img src="{{$smarty.const.APP_URL}}templates/admin/images/logo.png" title="后台首页"></a></div>
    <div class="loading"><div id="ajax-loader" title="Ajax数据更新中..."></div></div>
    <div id="topbar">
        <!--顶部菜单 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topmenu.html"}}
        <!--顶部菜单 end-->
        <!--顶部右侧 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topuser.html"}}
        <!--顶部右侧 end-->
        <div></div>
    </div>
</div>

<div><!-- 外层添加一个DIV解决IE8下margin-top的问题 -->
    <table id="maintable" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <!--左侧菜单 start-->
            {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/leftmenu.html"}}
            <!--左侧菜单 end-->
            <!--主要TD start-->
            <td class="maintd" valign="top">
                <div class="maindiv">
                    <div id="main">
                        <div class="itemtitle">
                            <h3>站点设置</h3>
                            <ul>
                                <a class="link-btn link-live" href="/setting/site">基本设置</a>
                                <!--<a class="link-btn" href="/setting/mail">邮件设置</a>-->
                            </ul>
                        </div>
                        <form action="/setting/site_post" method="post" enctype="multipart/form-data">
                            <table class="tb">
                                <tbody>
                                <tr>
                                    <td class="tbheader" colspan="38">基本设置</td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>网站URL</b>
                                        <br>
                                        网站完整的URL, 用于正确显示编辑器中上传的图片、邮件发送等. 请以
                                        <span class="note">/</span>
                                        结束.
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.site_url}}" name="site_url" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>网站名称</b>
                                        <br>
                                        请输入网站名称
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.site_name}}" name="site_name" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>网站Logo</b>
                                        <br>
                                        请上传网站Logo
                                    </td>
                                    <td class="td last">
                                        <input type="file" name="site_logo" style="width:292px;">&nbsp;&nbsp;<img src="{{$smarty.const.WWW_URL}}{{$setting_info.site_logo}}" width="50" height="50">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>联系电话</b>
                                        <br>
                                        请输入联系电话
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.telephone}}" name="telephone" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>电子邮件</b>
                                        <br>
                                        请输入电子邮件
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.email}}" name="email" style="width:292px;">
                                    </td>
                                </tr>
                                <!--<tr>
                                    <td class="td">
                                        <b>URL友好访问模式(伪静态)</b>
                                        <br>
                                        如果服务器是Apache环境, 且Rewrite重写模式有效, 可设置为
                                        <span class="note">开启</span>
                                        , 有利于搜索引擎收录您的网页.
                                        <br>
                                        如果网站前台链接无效或访问不正常, 说明服务器不支持此功能, 需要重新设置为
                                        <span class="note">关闭</span>
                                        .
                                    </td>
                                    <td class="td last">
                                        <input id="Radio_settings[siteRewrite]0" type="radio" value="1" name="settings[siteRewrite]">
                                        <label for="Radio_settings[siteRewrite]0">开启</label>
                                        <input id="Radio_settings[siteRewrite]1" type="radio" checked="checked" value="0" name="settings[siteRewrite]">
                                        <label for="Radio_settings[siteRewrite]1">关闭</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>网站默认时区</b>
                                        <br>
                                        HongCMS中英文网站系统将按默认时区显示日期和时间.
                                    </td>
                                    <td class="td last">
                                        <select class="" name="settings[siteTimezone]">
                                            <option value="-12">(GMT -12) Eniwetok,Kwajalein</option>
                                            <option value="-11">(GMT -11) Midway Island,Samoa</option>
                                            <option value="-10">(GMT -10) Hawaii</option>
                                            <option value="-9">(GMT -9) Alaska</option>
                                            <option value="-8">(GMT -8) Pacific Time(US & Canada)</option>
                                            <option value="-7">(GMT -7) Mountain Time(US & Canada)</option>
                                            <option value="-6">(GMT -6) Mexico City</option>
                                            <option value="-5">(GMT -5) Bogota,Lima</option>
                                            <option value="-4">(GMT -4) Caracas,La Paz</option>
                                            <option value="-3">(GMT -3) Brazil,Buenos Aires,Georgetown</option>
                                            <option value="-2">(GMT -2) Mid-Atlantic</option>
                                            <option value="-1">(GMT -1) Azores,CapeVerde Islands</option>
                                            <option value="">(GMT) London,Lisbon,Casablanca</option>
                                            <option value="+1">(GMT +1) Paris,Brussels,Copenhagen</option>
                                            <option value="+2">(GMT +2) Kaliningrad,South Africa</option>
                                            <option value="+3">(GMT +3) Moscow,Baghdad,Petersburg</option>
                                            <option value="+4">(GMT +4) Abu Dhabi,Muscat,Baku,Tbilisi</option>
                                            <option value="+5">(GMT +5) Karachi,Islamabad,Tashkent</option>
                                            <option value="+6">(GMT +6) Almaty,Dhaka,Colombo</option>
                                            <option value="+7">(GMT +7) Bangkok,Hanoi,Jakarta</option>
                                            <option selected="selected" value="+8">(GMT +8) 北京, 香港, 新加坡</option>
                                            <option value="+9">(GMT +9) Tokyo,Osaka,Yakutsk</option>
                                            <option value="+10">(GMT +10) Australia,Guam,Vladivostok</option>
                                            <option value="+11">(GMT +11) Magadan,Solomon Islands</option>
                                            <option value="+12">(GMT +12) Auckland,Wellington,Fiji</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>日期格式</b>
                                        <br>
                                        系统显示日期的格式.
                                    </td>
                                    <td class="td last">
                                        <select class="LargeSelect" name="settings[siteDateFormat]">
                                            <option selected="selected" value="Y-m-d">2010-08-12</option>
                                            <option value="Y-n-j">2010-8-12</option>
                                            <option value="Y/m/d">2010/08/12</option>
                                            <option value="Y/n/j">2010/8/12</option>
                                            <option value="Y年n月j日">2010年8月12日</option>
                                            <option value="m-d-Y">08-12-2010</option>
                                            <option value="m/d/Y">08/12/2010</option>
                                            <option value="M j, Y">Aug 12, 2010</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>小图尺寸(像素)</b>
                                        <br>
                                        上传的产品图片生成三种规格的缩略图(小、中、大), 其中小图的长宽为:
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="80" name="settings[siteSmall]" style="width:80px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>中图尺寸(像素)</b>
                                        <br>
                                        上传的产品图片生成三种规格的缩略图(小、中、大), 其中中图的长宽为:
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="400" name="settings[siteMiddle]" style="width:80px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>大图尺寸(像素)</b>
                                        <br>
                                        上传的产品图片生成三种规格的缩略图(小、中、大), 其中大图的长宽为:
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="900" name="settings[siteLarge]" style="width:80px;">
                                    </td>
                                </tr>-->
                                <tr>
                                    <td class="td">
                                        <b>开启或关闭网站</b>
                                        <br>
                                        当系统进行升级, 数据库备份或恢复等维护操作时, 推荐先关闭网站.
                                    </td>
                                    <td class="td last">
                                        <input id="Radio_settings[siteActived]0" type="radio" {{if $setting_info.site_is_close==1}}checked="checked"{{/if}} value="1" name="site_is_close">
                                        <label for="Radio_settings[siteActived]0">开启</label>
                                        <input id="Radio_settings[siteActived]1" type="radio" {{if $setting_info.site_is_close==0}}checked="checked"{{/if}} value="0" name="site_is_close">
                                        <label for="Radio_settings[siteActived]1">关闭</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>
                                            关闭时显示
                                        </b>
                                        <br>
                                        网站关闭后显示的提示信息(允许HTML).
                                    </td>
                                    <td class="td last">
                                        <textarea style="width:292px;" rows="4" name="close_message">{{$setting_info.close_message}}</textarea>
                                    </td>
                                </tr>
                                <!--<tr>
                                    <td class="td">
                                        <b>
                                            Meta关键字
                                        </b>
                                        <br>
                                        便于搜索引擎收录和搜索您的网站, 多个Meta关键字需用英文逗号隔开.
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.site_keyword}}" name="site_keyword" style="width:292px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <b>
                                            网站描述
                                        </b>
                                        <br>
                                        请输入网站描述.
                                    </td>
                                    <td class="td last">
                                        <textarea style="width:292px;" rows="4" name="site_desc">{{$setting_info.site_desc}}</textarea>
                                    </td>
                                </tr>-->
                                <tr>
                                    <td class="td">
                                        <b>网站备案信息</b>
                                        <br>
                                        在网站页面底部添加备案信息链接,
                                        <span class="note">不显示可留空</span>
                                        .
                                    </td>
                                    <td class="td last">
                                        <input type="text" value="{{$setting_info.icp}}" name="icp" style="width:292px;">
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="submit">
                                <input class="save" type="submit" value="保存设置">
                                <input class="cancel" type="reset" value="重置">
                            </div>
                        </form>
                        <!--底部信息 start-->
                        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/sysinfo.html"}}
                        <!--底部信息 end-->
                    </div>
                </div>
            </td>
            <!--主要TD end-->
        </tr>
        </tbody></table>
</div>

<script type="text/javascript">
    jQuery(document).ready(function() {
        //调整高度
        $("#container").height($(window).height()-40);
        $(window).resize(function() {
            $("#container").height($(window).height()-40);
        });

        App.init();//左侧菜单初始化

        var a101 = $("#topbar"); //顶部下接菜单
        a101.find("dl").Jdropdown({delay: 0}, function(a){});

        //全选checkbox
        $("#checkAll").click(function(e){
            $("input[name='" + $(this).attr("for") + "']").attr("checked", this.checked);
        });
    });
</script>
</body>
</html>